﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using Cinch;

namespace BingVis.WPFClient
{
    public class ViewModelBase : INotifyPropertyChanged
    {
        protected static Mediator mediator;

        public ViewModelBase()
        {
            if (mediator == null)
                // Switched to central Mediator.
                mediator = AppMediator.Instance;
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;
        public void OnPropertyChanged(string propName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propName));
        }
        #endregion
    }
}
